import sun.reflect.generics.tree.ReturnType;

/**
 * @Author 宁铂
 * @Date 2021/7/5 20:59
 * @Version 1.0
 */
public class Methods {

    /** 本类用于测试方法的创建 */
    public static void main(String[] args) {

        TestType demo = new TestType();

        int a = demo.methodName("宁铂");
        System.out.println(a);

    }

}

class TestType{
    int methodName(String s){

        System.out.println(s);

        return s.length() * 2;
    }

    boolean flag(){
        return true;
    }

    double naturalLogBase(){
        return 2.718;
    }

    void nothing(){
        return ;
    }

    void nothing2(){

    }
}